<%@ page language="java" contentType="text/html; charset=UTF-8"
	pageEncoding="UTF-8"%>
<%
	String path = request.getContextPath();
	String basePath = request.getScheme() + "://" + request.getServerName() + ":" + request.getServerPort()
			+ path + "/";
%>

<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>

<title>教师信息列表</title>

<link type="text/css" rel="stylesheet"
	href="<%=basePath%>css/teacherTeam.css">

<Style type="text/css">
A {
	TEXT-DECORATION: none;
	Color: #000000
}

A:hover {
	TEXT-DECORATION: underline;
	Color: #4455aa
}

BODY {
	FONT-SIZE: 12px;
	COLOR: #000000;
	FONT-FAMILY: Tahoma;
	text-align: center;
	margin: 0;
}

font {
	line-height: normal;
}

TD {
	font-family: Tahoma;
	font-size: 12px;
	line-height: 15px;
}

th {
	background-image: url(Skins/Default/css/default/bg1.gif);
	background-color: #4455aa;
	color: white;
	font-size: 12px;
	font-weight: bold;
	height: 25;
}

th a {
	COLOR: #FF0000;
	TEXT-DECORATION: none;
}

th a:hover {
	COLOR: #FF0000;
	TEXT-DECORATION: underline;
}

td.TableTitle1 {
	background-color: #6595D6;
	Color: #FFFFFF;
}

td.TableBody1 {
	background-color: #FFFFFF;
	line-height: normal;
}

.tableBorder5 {
	border: 1px #6595D6 solid;
	background-color: #D6E0EF;
}
</Style>
<Script Language="JavaScript" type="text/JavaScript"
	src="<%=basePath%>page/teacher/js/Page.js"></Script>


</head>
<body
	style="
	background: url(<%=basePath%>img/bg.jpg) -200px -83px;
	background-attachment: fixed;">
<div
	style="border: solid 1px #4B6DA3; position: absolute; left: 10px : width : 100%">
<div class="container"
	style="border: solid 1px #4B6DA3; position: absolute; left: 20px;">
<div>
<table cellpadding="0" cellspacing="0" border="0" width="100%">

	<tr>
		<td>
		<div class="header">
		<div class="header_left">&nbsp;&nbsp;教师信息列表</div>

		<div class="header_right"><a
			href="<%=basePath %>/page/teacher/addTeacher.jsp">添加教师信息</a>&nbsp;&nbsp;
		</div>
		</div>
		</td>
	</tr>

	<tr>
		<td><c:forEach items="${requestScope.teacherList}" var="teacher">

			<div>

			<div class="date">&nbsp;&nbsp;姓名：${teacher.teacherName} &nbsp;
			&nbsp;<br />
			&nbsp;&nbsp;职称：${teacher.position }&nbsp;&nbsp; <br />
			&nbsp;&nbsp;简介：${teacher.introduction}</div>
			<div class="opt"><a
				href="<%=basePath %>TeacherTeamServlet?action=get&teacherID=${teacher.teacherID }">编辑</a>&nbsp;&nbsp;|&nbsp;&nbsp;
			<a
				href="TeacherTeamServlet?action=delete&teacherID=${teacher.teacherID }">删除</a>&nbsp;&nbsp;|&nbsp;&nbsp;

			<c:choose>
				<c:when test="${teacher.visiable == 1}">
					<a
						href="TeacherTeamServlet?action=set&visiable=0&teacherID=${teacher.teacherID }">设置为不公开</a>
				</c:when>

				<c:otherwise>
					<a
						href="TeacherTeamServlet?action=set&visiable=1&teacherID=${teacher.teacherID }">设置为公开</a>
				</c:otherwise>
			</c:choose></div>
			<div class="line"></div>

			</div>

		</c:forEach></td>
	</tr>
</table>
</div>
<div align="center"
	style="position: relative; top: 2px; border: solid 1px #4B6DA3;">
<Script Language="JavaScript" type="text/JavaScript">			
				ShowoPage(${requestScope.totalRecord},5,5,"Page=","","","Page","<img src='<%=basePath%>page/teacher/First.gif' border='0'/>","<img src='<%=basePath%>page/teacher/First.gif' border='0'>","<img src='<%=basePath%>page/teacher/Previous.gif' />","<img src='<%=basePath%>page/teacher/Previous.gif' border='0'/>","<img src='<%=basePath%>page/teacher/Next.gif' border='0'>","<img src='<%=basePath%>page/teacher/Next.gif' border='0'>","<img src='<%=basePath%>page/teacher/Last.gif' border='0'/>","<img src='<%=basePath%>page/teacher/Last.gif' border='0'/>","<font class='normalTextSmall'><u><b>{$PageNum}</b></u></font>","{$PageNum}","<td class='tablebody2'>&nbsp;{$PageTextF}&nbsp;</td>","<td class='tablebody1'>&nbsp;{$PageTextF}&nbsp;</td>","{$PageNum}","{$PageNum}","PageInput","","","<table class='Tableborder5' border='0' cellpadding='0' cellspacing='1'><tr align='center'><td class='tabletitle1' title='主题数'>&nbsp;{$RecCount}&nbsp;</td><td class='tabletitle1' title='本页主题'>&nbsp;{$PageSize}&nbsp;</td><td class='tabletitle1'>&nbsp;{$Page}/{$PageCount}页&nbsp;</td><td class='tablebody1'>&nbsp;{$PageFrist}&nbsp;</td><td class='tablebody1'>&nbsp;{$PagePrev}&nbsp;</td>{$PageText}<td class='tablebody1'>&nbsp;{$PageNext}&nbsp;</td><td class='tablebody1'>&nbsp;{$PageLast}&nbsp;</td><td class='tablebody1'>{$PageInput}</td></tr></table>");
			</Script></div>

</div>
</body>


</html>
